import request from "@/utils/request";
// 调用权限
export default {
  getUsersByDeptId(data) {
    return request({
      url: "/api/bookaddress/dept/users/",
      method: "get",
      params: data
    });
  },
  getSimpleDeptList(data) {
    return request({
      url: "/api/bookaddress/simple_depts/",
      method: "get",
      params: data
    });
  },
  editXzjb(id,data) {
    return request({
      url: "/api/bookaddress/edit/xzjb/"+id+"/",
      method: "post",
      data
    });
  },
  editTel(id,data) {
    return request({
      url: "/api/bookaddress/edit/tel/"+id+"/",
      method: "put",
      data
    });
  },
  moveUp(id,data) {
    return request({
      url: "/api/bookaddress/move_up/"+id+"/",
      method: "put",
      data
    });
  },
  moveDown(id,data) {
    return request({
      url: "/api/bookaddress/move_down/"+id+"/",
      method: "put",
      data
    });
  },
};
